package com.software.Date10_10.demo2;

public class Run {
    public static void main(String[] args) {
        Integer x = new Integer(66);/** 装箱，改语法过时，没有编译错误 */
        System.out.println(x);
        Integer y = Integer.valueOf(99);/** 装箱*/
        System.out.println(y);
        int num = y.intValue();/** 拆箱*/
        System.out.println(num);

        Integer a = 888;
        System.out.println(a);
        System.out.println(a.intValue());
        a++;
        System.out.println(a);
        System.out.println(a.intValue());


    }
}
